﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="<%: Url.Content("~/Content/CSS/Common/Common.css") %>" rel="stylesheet"
        type="text/css" />
    <link href="<%: Url.Content("~/Content/CSS/Common/Common.css") %>" rel="stylesheet"
        type="text/css" />
    <script src="<%: Url.Content("~/Scripts/hiTable.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.pagination.js") %>" type="text/javascript"></script>
    <script src="../../Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.ztree.all-3.4.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.ztree.core-3.4.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.ztree.excheck-3.4.js") %>" type="text/javascript"></script>
    <script src="../../Scripts/Menu/Index.js" type="text/javascript"></script>
    <script type="text/javascript">
        var ChooseAMenu = "<%:Html.Lang("Menu_Index_ChooseMenu")%>";
        var SureDelete = "<%:Html.Lang("Menu_Index_SureDelete")%>";
        var DeleteFail = "<%:Html.Lang("Menu_Index_DeleteFail")%>"; 
        var bYes = "<%:Html.Lang("Menu_Index_Yes")%>";
        var bNo = "<%:Html.Lang("Menu_Index_No")%>";
        var DeleteFail_DeleteChildFirst = "<%:Html.Lang("Menu_Index_DeleteFail")%>";
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <input type="hidden" id="ParentId" />
    <input type="hidden" id="ParentName" />
    <div style="height: 400px;">
        <div id="left" style="width: 19%; float: left; border-style: solid; border-width: 1.5px;
            border-color: #D8DBDC; height: 400px;">
            <ul id="treeMenu" class="ztree">
            </ul>
        </div>
        <div id="right" style="width: 79%; float: left; border-style: solid; border-width: 1.5px;
            border-color: #D8DBDC; height: 400px;">
            <button class="AddButton" id="Add" onclick="AddMenu()">
                <%:Html.Lang("Menu_Index_Add")%></button>
            <table id="Searchresult" class="hiTable" style="width: 100%; table-layout: fixed;
                word-break: break-all; word-wrap: break-word;">
                <!--表头-->
                <thead>
                    <tr>
                        <td style="word-break: break-all;">
                            <%:Html.Lang("Menu_Index_Name")%>
                        </td>
                        <td style="word-break: break-all;">
                            <%:Html.Lang("Menu_Index_Description")%>
                        </td>
                        <td style="word-break: break-all;">
                            <%:Html.Lang("Menu_Index_IsMenu")%>
                        </td>
                        <td style="word-break: break-all;">
                            <%:Html.Lang("Menu_Index_IsDisplay")%>
                        </td>
                        <td style="word-break: break-all;">
                            <%:Html.Lang("Menu_Index_URL")%>
                        </td>
                        <td style="word-break: break-all;">
                            <%:Html.Lang("Menu_Index_Operation")%>
                        </td>
                    </tr>
                </thead>
                <!--内容-->
                <tbody>
                </tbody>
            </table>
            <div class="paginationcontainer" style="width: 100%;">
                <!-- PageBar html 代码开始-->
                <div id="PageToolbar" class="pageBar">
                    <div class='selectdropdown'>
                        <select id="perPage">
                            <option value="10">10</option>
                            <option value="20">20</option>
                            <option value="30">30</option>
                            <option value="40">40</option>
                            <option value="50">50</option>
                        </select>
                    </div>
                    <div id="PageBar1" class="pagination">
                        <!-- 这里显示分页 -->
                    </div>
                </div>
                <!-- PageBar html -->
            </div>
        </div>
    </div>
</asp:Content>
